<?php

/**
 * paciente actions.
 *
 * @package    gestdent
 * @subpackage paciente
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class buscarpacienteActions extends sfActions
{
  public function executeIndex(sfWebRequest $request)
  {
    $this->filtro = new GestdentPacienteFormFilter();
    $this->setTemplate('index');
  }

  public function executeFiltrar(sfWebRequest $request)
  {
    $this->filtro = new GestdentPacienteFormFilter();
    $criteria = $this->filtro->buildCriteria($request->getParameter('gestdent_paciente_filters'));
    $this->gestdent_paciente_list = GestdentPacientePeer::doSelect($criteria);
    $this->setTemplate('filtrar');
  }


}
